/*
 * Copyright (C) 2014 Joerg Wiesmann joerg.wiesmann@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package de.inetsource.onepagejsf.html.parse;

import static org.rendersnake.HtmlAttributesFactory.*;
import java.io.IOException;
import org.rendersnake.HtmlCanvas;
import org.rendersnake.Renderable;

/**
 *
 * @author Joerg Wiesmann joerg.wiesmann@gmail.com
 */
public class MenuBar implements Renderable {

    @Override
    public void renderOn(HtmlCanvas html) throws IOException {
        html.div(class_("navbar-wrapper"))
                .div(class_("container"))
                    .div(class_("navbar navbar-inverse navbar-fixed-top"))
                        .div(class_("container"))
                            .div(class_("navbar-header"))
                            .button(type("button").class_("navbar-toggle").add("dataToggle", "collapse").add("dataTarget", ".navbar-collapse"))
                                .span(class_("icon-bar"))._span()
                                .span(class_("icon-bar"))._span()
                                .span(class_("icon-bar"))._span()
                            ._button()
                            .a(class_("navbar-brand").href("#"))
                            .content("Joerg Wiesmann")
                        ._div()
                        .div(class_("navbar-collapse collapse"))
                            .ul(class_("nav navbar-nav"))
                            ._ul()
                            .ul(class_("nav navbar-nav navbar-right"))
                                .ul(class_("nav navbar-nav"))
                                    .li()
                                    ._li()
                                    .li()
                                    ._li()
                                ._ul()
                            ._ul()
                        ._div()
                    ._div()
                ._div()
            ._div()
        ._div();

    }

}
